Install
openclaw skills install ai-tip-from-hwchase17Provides AI learning tips by demonstrating how to create custom LangChain agents with structured outputs using Pydantic models.
openclaw skills install ai-tip-from-hwchase17Automatically generated AI learning skill from curated web and social media sources.
from langchain_core.pydantic_v1 import BaseModel, Field
class Joke(BaseModel):
setup: str = Field(description="question to set up a joke")
punchline: str = Field(description="answer to resolve the joke")
llm.with_structured_output(Joke)