add structured output
Implement the structured output and conduct a small scale test.