Skip to content

feat: structured output and tool calling examples for Crusoe Managed Inference#58

Open
Sakshi3027 wants to merge 1 commit into
crusoecloud:mainfrom
Sakshi3027:feat/structured-output-crusoe
Open

feat: structured output and tool calling examples for Crusoe Managed Inference#58
Sakshi3027 wants to merge 1 commit into
crusoecloud:mainfrom
Sakshi3027:feat/structured-output-crusoe

Conversation

@Sakshi3027

Copy link
Copy Markdown

What this adds

Four working demos of structured output and tool calling with ChatCrusoe.

Demo What it shows
Structured summary Pydantic-validated fields from free-form LLM output
Code review Typed verdict, score, and issue lists
Entity extraction Companies, people, technologies, locations from text
Tool calling Bind tools to the model and parse tool call arguments

Why it's useful

Structured output and tool calling are core patterns for production LLM applications — they make model responses reliable and machine-parseable. The langchain-crusoe README documents that these features are supported, but there are no solution examples showing how to use them end to end. This fills that gap.

Testing

All 4 demos run successfully. Tested locally with Groq as a drop-in replacement.

To run on Crusoe:
export CRUSOE_API_KEY="your-api-key"
python structured_output.py

Related contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant