Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Also to be clear: are the schemas for the JSON data sent and parsed here specific to the model used? Or is there a standard? (Is that the P in MCP?)


Its JSON schema, well standardized, and predates LLMs: https://json-schema.org/


Ah, so I can specify how I want it to describe the tool request? And it's been trained to just accommodate that?


Most LLMs have tool patterns trained into them now, which are then managed for you by the API that the developers run on top of the models.

But... you don't have to use that at all. You can use pure prompting with ANY good LLM to get your own custom version of tool calling:

  Any time you want to run a calculation, reply with:
  {{CALCULATOR: 3 + 5 + 6}}
  Then STOP. I will reply with the result.
Before LLMs had tool calling we called this the ReAct pattern - I wrote up an example of implementing that in March 2023 here: https://til.simonwillison.net/llms/python-react-pattern




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: