Sha256: 19d2dba58024d49376e27235da067d44fe5eaad9130255751f8f1dcb17996977

Contents?: true

Size: 566 Bytes

Versions: 2

Compression:

Stored size: 566 Bytes

Contents

# Agent99 Framework

## Custom Agent Implementation

### Creating a Custom Agent

To create a custom agent:

1. Subclass `Agent99::Base`.
2. Define the request and response schemas.
3. Implement the `receive_request` and `receive_response` methods.

Example:

```ruby
class MyCustomAgent < Agent99::Base
  REQUEST_SCHEMA = MyAgentRequest.schema

  def receive_request
    # Handle incoming request
    response = { result: "Handled request" }
    send_response(response)
  end

  def receive_response
    # Handle incoming response from another agent
  end
end
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
agent99-0.0.4 docs/custom_agent_implementation.md
agent99-0.0.3 docs/custom_agent_implementation.md