Eric Tse

Results 3 comments of Eric Tse

@tmc I have a solution similar to what is described here, using struct tagging. This provides a similar developer experience to using Pydantic to extract structured data in LangChain. See...

Could elaborate on what you want to do with custom calls and which LLM you want to use?

@wjx-xin Yes, except instead of inheritance, you would implement this interface: https://github.com/tmc/langchaingo/blob/main/llms/llms.go#L15-L29 For example, the OpenAI client implementation of that interface: https://github.com/tmc/langchaingo/blob/main/llms/openai/openaillm.go#L47