Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

1.4 KB
Raw Blame
<a id="camel.environments.models"></a>

<a id="camel.environments.models.Action"></a>

## Action

```python
class Action(BaseModel):
```

Represents an action taken in an environment.

This class defines the input context, the LLM-generated output, and
metadata required for verification and tracking within an RL
framework.

**Parameters:**

- **llm_response** (str): The response generated by the LLM.
- **metadata** (Dict[str, Any]): Additional metadata such as model parameters, prompt details, or response confidence scores.
- **timestamp** (datetime): The timestamp when the action was generated (UTC).

<a id="camel.environments.models.Observation"></a>

## Observation

```python
class Observation(BaseModel):
```

Environment observation.

**Parameters:**

- **question**: The question posed to the LLM.
- **context**: Additional context for the question.
- **metadata**: Optional metadata about the observation.

<a id="camel.environments.models.StepResult"></a>

## StepResult

```python
class StepResult(BaseModel):
```

Result of an environment step.

**Parameters:**

- **observation**: The next observation.
- **reward**: Dictionary of reward scores for different aspects.
- **done**: Whether the episode is complete.
- **info**: Additional information about the step.

<a id="camel.environments.models.StepResult.as_tuple"></a>

### as_tuple

```python
def as_tuple(self):
```

Returns all fields of the model as a tuple, in declaration order