NeoGraph 0.10.0
A C++17 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
a2a_caller_node.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <neograph/api.h>
18#include <neograph/a2a/client.h>
19#include <neograph/graph/node.h>
20
21#include <memory>
22#include <string>
23
24namespace neograph::a2a {
25
35class NEOGRAPH_API A2ACallerNode : public neograph::graph::GraphNode {
36 public:
37 A2ACallerNode(std::string name,
38 std::shared_ptr<A2AClient> client,
39 std::string input_key = "prompt",
40 std::string output_key = "response");
41
46 asio::awaitable<neograph::graph::NodeOutput>
48
49 std::string get_name() const override { return name_; }
50
51 private:
52 std::string name_;
53 std::shared_ptr<A2AClient> client_;
54 std::string input_key_;
55 std::string output_key_;
56};
57
58} // namespace neograph::a2a
A2A (Agent-to-Agent) JSON-RPC client over Streamable HTTP.
NEOGRAPH_API export/import macro for shared-library builds.
Node that forwards an input string to a remote A2A agent.
asio::awaitable< neograph::graph::NodeOutput > run(neograph::graph::NodeInput in) override
v0.4 PR 9a: unified run — reads input_key from state, forwards to the remote A2A agent,...
std::string get_name() const override
Get the node's unique name within the graph.
Abstract base class for all graph nodes.
Definition node.h:132
Graph node implementations: base class and built-in node types.
Per-call input bundle for the v0.4 unified run() virtual.
Definition node.h:72