Palico provides you flexiblity and tools to build complex Agent interactions. With Palico you can run functions on client and server side, manage states across requests, and stream messages or intermediate steps to client.
agentExecutor()
function is the “brain” of your agent. It is responsible for:
agent_executor.ts
file and is called from the index.ts
file.
tools.ts
file contains the definition of these tools. Here’s an example of a client-side and a server-side tool.
execute
function as they are
executed on the client-side.tools.ts
file to add more tools to your agent.
toolCall
response from your Chat
function from your palico-app.
Message
is a structured way define requests that are sent to an LLM model across different request in a conversation. We save these messages between requests. It contains the following fields:
ChatCompletionFunction
represents a function that:
Message[]
and Tool[]
as inputMessage
response from the LLM model.