Skip to main content
Ctrl+K
wayflowcore 26.1.0.dev0 documentation - Home wayflowcore 26.1.0.dev0 documentation - Home
  • WayFlow GitHub repository
  • WayFlow GitHub repository

Section Navigation

  • Changelog
  • Installation

Essentials

  • Tutorials & Use Cases
    • Build a Simple Conversational Assistant with Agents
    • Build a Simple Fixed-flow Assistant with Flows
    • Build a Simple Code Review Assistant
  • How-to Guides
    • Change Input and Output Descriptors of Components
    • Use Asynchronous APIs
    • Install and Use Ollama
    • Specify the Generation Configuration when Using LLMs
    • Use LLM from Different LLM Sources and Providers
    • Handle long context with agents
    • Create a ReAct Agent
    • How to Send Images to LLMs and Agents
    • Use OCI Generative AI Agents
    • How to Connect to A2A Agents
    • Use Templates for Advanced Prompting Techniques
    • Ask for User Input in Flows
    • Create Conditional Transitions in Flows
    • Do Structured LLM Generation in Flows
    • Add User Confirmation to a Tool Call Request
    • Catch Exceptions in Flows
    • Do Map and Reduce Operations in Flows
    • Run Multiple Flows in Parallel
    • Use Agents in Flows
    • Build a Hierarchical Multi-Agent System
    • Build a Swarm of Agents
    • Build a ManagerWorkers of Agents
    • Serve Agents with WayFlow
    • Serve Assistants with A2A protocol
    • Build Assistants with Tools
    • Create Tools with Multiple Outputs
    • Convert Flows to Tools
    • Connect MCP tools to Assistants
    • Do Remote API Calls with Tokens
    • Load and Execute an Agent Spec Configuration
    • Serialize and Deserialize Flows and Agents
    • Serialize and Deserialize Conversations
    • Build a New WayFlow Component
    • Enable Tracing
    • Connect Assistants to Your Data
    • Use Embedding Models from Different Providers
    • Use Variables for Shared State in Flows
    • Synthesize Data in WayFlow
    • Evaluate Assistants
    • Evaluate Conversations
  • API Reference
    • Agent Spec Adapters
    • Conversations
    • LLMs
    • Events
    • Flows
    • Agents
    • Agent Server
    • Embedding Models
    • Context Providers
    • Execution Interrupts
    • PromptTemplates
    • Serialization/Deserialization
    • Tools
    • Tracing
    • Variables
    • Datastores
    • Warnings
    • Evaluation
    • Component
    • A2A

Resources

  • Reference Sheet
  • Glossary
  • Security Considerations
  • For Contributors
  • Frequently Asked Questions
  • WayFlow
  • API Reference
  • A2A related classes

A2A related classes#

class wayflowcore.a2a.a2aagent.A2AConnectionConfig(timeout=600.0, headers=None, verify=True, key_file=None, cert_file=None, ssl_ca_cert=None, *, id=<factory>, __metadata_info__=<factory>, name='', description=None)#

Configuration settings for establishing a connection in agent-to-agent (A2A) communication.

This class encapsulates the necessary parameters to set up HTTP connections with a remote server, including timeout settings and security configurations for SSL/TLS.

Parameters:
  • timeout (float) – The maximum time in seconds to wait for HTTP requests to complete before timing out. Defaults to 600.0 seconds.

  • headers (Optional[Dict[str, str]]) – A dictionary of HTTP headers to include in requests sent to the server. Defaults to None, meaning no additional headers are sent.

  • verify (bool) – Determines whether the client verifies the server’s SSL certificate, enabling HTTPS. If True, the client will verify the server’s identity using the provided ssl_ca_cert. If False, disables SSL verification (not recommended for production environments).

  • key_file (Optional[str]) – Path to the client’s private key file in PEM format, used for mTLS authentication. If None, mTLS cannot be performed. Defaults to None.

  • cert_file (Optional[str]) – Path to the client’s certificate chain file in PEM format, used for mTLS authentication. If None, mTLS cannot be performed. Defaults to None.

  • ssl_ca_cert (Optional[str]) – Path to the trusted CA certificate file in PEM format, used to verify the server’s identity. If None, the system’s certificate store is used. Defaults to None.

  • id (str) –

  • __metadata_info__ (Dict[str, Any]) –

  • name (str) –

  • description (str | None) –

cert_file: Optional[str] = None#
headers: Optional[Dict[str, str]] = None#
key_file: Optional[str] = None#
ssl_ca_cert: Optional[str] = None#
timeout: float = 600.0#
verify: bool = True#
class wayflowcore.a2a.a2aagent.A2ASessionParameters(timeout=60.0, poll_interval=2.0, max_retries=5)#

Configuration parameters for an A2A session, controlling polling timeout and retry behavior.

This class defines the settings used during agent-to-agent communication sessions, particularly for polling and timeout behavior when waiting for responses from a remote server.

Parameters:
  • timeout (float) – The maximum time in seconds to wait for a response before considering the session timed out. Defaults to 60.0 seconds.

  • poll_interval (float) – The time interval in seconds between polling attempts to check for a response from the server. Defaults to 2.0 seconds.

  • max_retries (int) – The maximum number of retry attempts to establish a connection or receive a response before giving up. Defaults to 5 retries.

max_retries: int = 5#
poll_interval: float = 2.0#
timeout: float = 60.0#

A2A Agent#

refer A2AAgent

On this page
  • A2AConnectionConfig
    • A2AConnectionConfig.cert_file
    • A2AConnectionConfig.headers
    • A2AConnectionConfig.key_file
    • A2AConnectionConfig.ssl_ca_cert
    • A2AConnectionConfig.timeout
    • A2AConnectionConfig.verify
  • A2ASessionParameters
    • A2ASessionParameters.max_retries
    • A2ASessionParameters.poll_interval
    • A2ASessionParameters.timeout
  • A2A Agent

© Copyright 2025, Oracle and/or its affiliates..

Created using Sphinx 6.1.0.

Built with the PyData Sphinx Theme 0.16.1.