Gaunt Sloth Assistant - v1.5.0
    Preparing search index...

    Variable createA2AAgentToolConst Experimental

    createA2AAgentTool: (
        config: { agentId: string; agentUrl: string },
    ) => DynamicStructuredTool<
        z.ZodObject<{ message: z.ZodString }, z.core.$strip>,
        { message: string },
        { message: string },
        string,
        unknown,
        `a2a_agent_${string}`,
    >

    Creates a LangChain tool for communicating with an A2A agent. The tool will be named a2a_agent_<agentId>.

    Type Declaration

      • (
            config: { agentId: string; agentUrl: string },
        ): DynamicStructuredTool<
            z.ZodObject<{ message: z.ZodString }, z.core.$strip>,
            { message: string },
            { message: string },
            string,
            unknown,
            `a2a_agent_${string}`,
        >
      • Parameters

        • config: { agentId: string; agentUrl: string }

          A2A agent configuration

        Returns DynamicStructuredTool<
            z.ZodObject<{ message: z.ZodString }, z.core.$strip>,
            { message: string },
            { message: string },
            string,
            unknown,
            `a2a_agent_${string}`,
        >

        A DynamicStructuredTool for the agent